<script setup>
import { getApi} from '@/api/Api.js';
import { showNotify } from 'vant';
import 'vant/es/notify/style';
function testRequest(){
  console.log('testRequest');
    
   getApi('/v2-course/v2/category-tree',{ code:'course'})
    .then(res=>{
        console.log(res);
    }).catch(err=>{
        console.log(err);
    })
}

</script>

<template>

<div class="container">
    <div>学习中心</div>
    <div class="w-8 h-8 text-lg"
    @click="testRequest">
        请求
    </div>
</div>
</template>


<style scoped>
.container{
    width: 100%;
    height: 100%;
    background-color: #30e3f7;
}
</style>